﻿@model TestUp.Models.UserModels.UserNavigationModel

@{
    ViewBag.Title = "User: " + @User.Identity.Name;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@if(Model.Permission.CanSeeAdminPanel)
{
    <div id="adminPanelBtn">
        @Html.ActionLink("Go to admin tools", "ViewPendingTests", "Admin")
    </div>
}

<div id="leftColumn">
    @(Html.Kendo().Menu()
    .Name("mainMenu")
    .Items(items =>
    {
        items.Add().Text("Pending Tests").Action("PendingTests", "User");
        items.Add().Text("Show my results").Action("PassingResults", "User");
    })
    .Orientation(MenuOrientation.Vertical))
</div>

<div id="rightColumn">
    @RenderBody()
</div>